3.4.26 \(\int \sec (c+d x) (a+i a \tan (c+d x))^{7/2} \, dx\) [326]

Optimal. Leaf size=139 \[ \frac {256 i a^4 \sec (c+d x)}{35 d \sqrt {a+i a \tan (c+d x)}}+\frac {64 i a^3 \sec (c+d x) \sqrt {a+i a \tan (c+d x)}}{35 d}+\frac {24 i a^2 \sec (c+d x) (a+i a \tan (c+d x))^{3/2}}{35 d}+\frac {2 i a \sec (c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d} \]

[Out]

256/35*I*a^4*sec(d*x+c)/d/(a+I*a*tan(d*x+c))^(1/2)+64/35*I*a^3*sec(d*x+c)*(a+I*a*tan(d*x+c))^(1/2)/d+24/35*I*a
^2*sec(d*x+c)*(a+I*a*tan(d*x+c))^(3/2)/d+2/7*I*a*sec(d*x+c)*(a+I*a*tan(d*x+c))^(5/2)/d

________________________________________________________________________________________

Rubi [A]
time = 0.11, antiderivative size = 139, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3575, 3574} \begin {gather*} \frac {256 i a^4 \sec (c+d x)}{35 d \sqrt {a+i a \tan (c+d x)}}+\frac {64 i a^3 \sec (c+d x) \sqrt {a+i a \tan (c+d x)}}{35 d}+\frac {24 i a^2 \sec (c+d x) (a+i a \tan (c+d x))^{3/2}}{35 d}+\frac {2 i a \sec (c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sec[c + d*x]*(a + I*a*Tan[c + d*x])^(7/2),x]

[Out]

(((256*I)/35)*a^4*Sec[c + d*x])/(d*Sqrt[a + I*a*Tan[c + d*x]]) + (((64*I)/35)*a^3*Sec[c + d*x]*Sqrt[a + I*a*Ta
n[c + d*x]])/d + (((24*I)/35)*a^2*Sec[c + d*x]*(a + I*a*Tan[c + d*x])^(3/2))/d + (((2*I)/7)*a*Sec[c + d*x]*(a
+ I*a*Tan[c + d*x])^(5/2))/d

Rule 3574

Int[((d_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[2*b*(
d*Sec[e + f*x])^m*((a + b*Tan[e + f*x])^(n - 1)/(f*m)), x] /; FreeQ[{a, b, d, e, f, m, n}, x] && EqQ[a^2 + b^2
, 0] && EqQ[Simplify[m/2 + n - 1], 0]

Rule 3575

Int[((d_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[b*(d*
Sec[e + f*x])^m*((a + b*Tan[e + f*x])^(n - 1)/(f*(m + n - 1))), x] + Dist[a*((m + 2*n - 2)/(m + n - 1)), Int[(
d*Sec[e + f*x])^m*(a + b*Tan[e + f*x])^(n - 1), x], x] /; FreeQ[{a, b, d, e, f, m, n}, x] && EqQ[a^2 + b^2, 0]
 && IGtQ[Simplify[m/2 + n - 1], 0] &&  !IntegerQ[n]

Rubi steps

\begin {align*} \int \sec (c+d x) (a+i a \tan (c+d x))^{7/2} \, dx &=\frac {2 i a \sec (c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}+\frac {1}{7} (12 a) \int \sec (c+d x) (a+i a \tan (c+d x))^{5/2} \, dx\\ &=\frac {24 i a^2 \sec (c+d x) (a+i a \tan (c+d x))^{3/2}}{35 d}+\frac {2 i a \sec (c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}+\frac {1}{35} \left (96 a^2\right ) \int \sec (c+d x) (a+i a \tan (c+d x))^{3/2} \, dx\\ &=\frac {64 i a^3 \sec (c+d x) \sqrt {a+i a \tan (c+d x)}}{35 d}+\frac {24 i a^2 \sec (c+d x) (a+i a \tan (c+d x))^{3/2}}{35 d}+\frac {2 i a \sec (c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}+\frac {1}{35} \left (128 a^3\right ) \int \sec (c+d x) \sqrt {a+i a \tan (c+d x)} \, dx\\ &=\frac {256 i a^4 \sec (c+d x)}{35 d \sqrt {a+i a \tan (c+d x)}}+\frac {64 i a^3 \sec (c+d x) \sqrt {a+i a \tan (c+d x)}}{35 d}+\frac {24 i a^2 \sec (c+d x) (a+i a \tan (c+d x))^{3/2}}{35 d}+\frac {2 i a \sec (c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.87, size = 109, normalized size = 0.78 \begin {gather*} \frac {2 a^3 \sec ^2(c+d x) (i \cos (c-2 d x)+\sin (c-2 d x)) (75+102 \cos (2 (c+d x))+19 i \sec (c+d x) \sin (3 (c+d x))+14 i \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}{35 d (\cos (d x)+i \sin (d x))^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sec[c + d*x]*(a + I*a*Tan[c + d*x])^(7/2),x]

[Out]

(2*a^3*Sec[c + d*x]^2*(I*Cos[c - 2*d*x] + Sin[c - 2*d*x])*(75 + 102*Cos[2*(c + d*x)] + (19*I)*Sec[c + d*x]*Sin
[3*(c + d*x)] + (14*I)*Tan[c + d*x])*Sqrt[a + I*a*Tan[c + d*x]])/(35*d*(Cos[d*x] + I*Sin[d*x])^3)

________________________________________________________________________________________

Maple [A]
time = 0.60, size = 100, normalized size = 0.72

method result size
default \(\frac {2 \left (128 i \left (\cos ^{4}\left (d x +c \right )\right )+128 \sin \left (d x +c \right ) \left (\cos ^{3}\left (d x +c \right )\right )+54 i \left (\cos ^{2}\left (d x +c \right )\right )-22 \sin \left (d x +c \right ) \cos \left (d x +c \right )-5 i\right ) \sqrt {\frac {a \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, a^{3}}{35 d \cos \left (d x +c \right )^{3}}\) \(100\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)*(a+I*a*tan(d*x+c))^(7/2),x,method=_RETURNVERBOSE)

[Out]

2/35/d*(128*I*cos(d*x+c)^4+128*sin(d*x+c)*cos(d*x+c)^3+54*I*cos(d*x+c)^2-22*sin(d*x+c)*cos(d*x+c)-5*I)*(a*(I*s
in(d*x+c)+cos(d*x+c))/cos(d*x+c))^(1/2)/cos(d*x+c)^3*a^3

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)*(a+I*a*tan(d*x+c))^(7/2),x, algorithm="maxima")

[Out]

integrate((I*a*tan(d*x + c) + a)^(7/2)*sec(d*x + c), x)

________________________________________________________________________________________

Fricas [A]
time = 0.39, size = 109, normalized size = 0.78 \begin {gather*} -\frac {16 \, \sqrt {2} {\left (-35 i \, a^{3} e^{\left (6 i \, d x + 6 i \, c\right )} - 70 i \, a^{3} e^{\left (4 i \, d x + 4 i \, c\right )} - 56 i \, a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} - 16 i \, a^{3}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{35 \, {\left (d e^{\left (6 i \, d x + 6 i \, c\right )} + 3 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 3 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)*(a+I*a*tan(d*x+c))^(7/2),x, algorithm="fricas")

[Out]

-16/35*sqrt(2)*(-35*I*a^3*e^(6*I*d*x + 6*I*c) - 70*I*a^3*e^(4*I*d*x + 4*I*c) - 56*I*a^3*e^(2*I*d*x + 2*I*c) -
16*I*a^3)*sqrt(a/(e^(2*I*d*x + 2*I*c) + 1))/(d*e^(6*I*d*x + 6*I*c) + 3*d*e^(4*I*d*x + 4*I*c) + 3*d*e^(2*I*d*x
+ 2*I*c) + d)

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)*(a+I*a*tan(d*x+c))**(7/2),x)

[Out]

Exception raised: SystemError >> excessive stack use: stack is 3877 deep

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)*(a+I*a*tan(d*x+c))^(7/2),x, algorithm="giac")

[Out]

integrate((I*a*tan(d*x + c) + a)^(7/2)*sec(d*x + c), x)

________________________________________________________________________________________

Mupad [B]
time = 6.00, size = 286, normalized size = 2.06 \begin {gather*} \frac {a^3\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}\,16{}\mathrm {i}}{d}-\frac {a^3\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}\,16{}\mathrm {i}}{d\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}+\frac {a^3\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}\,48{}\mathrm {i}}{5\,d\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^2}-\frac {a^3\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}\,16{}\mathrm {i}}{7\,d\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*tan(c + d*x)*1i)^(7/2)/cos(c + d*x),x)

[Out]

(a^3*exp(- c*1i - d*x*1i)*(a - (a*(exp(c*2i + d*x*2i)*1i - 1i)*1i)/(exp(c*2i + d*x*2i) + 1))^(1/2)*16i)/d - (a
^3*exp(- c*1i - d*x*1i)*(a - (a*(exp(c*2i + d*x*2i)*1i - 1i)*1i)/(exp(c*2i + d*x*2i) + 1))^(1/2)*16i)/(d*(exp(
c*2i + d*x*2i) + 1)) + (a^3*exp(- c*1i - d*x*1i)*(a - (a*(exp(c*2i + d*x*2i)*1i - 1i)*1i)/(exp(c*2i + d*x*2i)
+ 1))^(1/2)*48i)/(5*d*(exp(c*2i + d*x*2i) + 1)^2) - (a^3*exp(- c*1i - d*x*1i)*(a - (a*(exp(c*2i + d*x*2i)*1i -
 1i)*1i)/(exp(c*2i + d*x*2i) + 1))^(1/2)*16i)/(7*d*(exp(c*2i + d*x*2i) + 1)^3)

________________________________________________________________________________________